package com.wx.studentManage.mapper;

import com.wx.studentManage.model.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    User findUserByUserCode(String userCode);

    User findByUserCodeAndPassword(User user);

    int saveUser(User user);

    int updateUser(User user);

    List<User> getUserList(Map<String, Object> data);

    int getSelectCount(Map<String, Object> data);

    int updateState(User user);

    List<User> getUserByTeamCode(String teamCode);

    List<User> getUserItemByNoTeamCode();

    int updateUserTeam(Map params);

    int getCountByTeam(String teamCode);

    int updateUserToStu(User user);

    int updateUserToLea(User user);

    int updateLeaderToStu(Integer id);
}
